﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>报价系数</title>
    <script src="~/Content/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script src="~/Content/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script src="~/Content/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <link href="~/Content/jquery-easyui-1.5.2/themes/bootstrap/easyui.css" rel="stylesheet" />
    <link href="~/Content/jquery-easyui-1.5.2/themes/icon.css" rel="stylesheet" />
    <script src="~/Content/layer/layer.js"></script>
    <link href="~/Content/layer/skin/default/layer.css" rel="stylesheet" />
</head>
<body class="easyui-layout">
    <div data-options="region:'center'" style="padding:0 10px 5px 10px;background:#eee;">
        <table id="grid-list"> </table>
        <div id="toolbar" style="display:none;">
            <select id="cbbProvince" class="easyui-combobox" name="dept" style="width:200px;"></select>
            <select id="cc" class="easyui-combobox" name="dept" style="width:200px;">
                <option value="aa">全部</option>
                <option>江宁区</option>
                <option>秦淮区</option>
                <option>鼓楼区</option>
                <option>浦口区</option>
            </select>
            <input class="easyui-textbox" data-options="iconCls:'icon-search'" style="width:300px">

        </div>
    </div>
    <script>
        $(function () {

            Grid.LoadData();

            $('#cbbProvince').combobox({
                url: '/Supplier/ProvinceData',
                valueField:'Id',
                textField:'Name',
                editable:false
            });

        });
        var ttt = "ttttt";
        var Grid = {
            title: 'tttt',
            LoadData: function () {
                Grid.list = $("#grid-list").datagrid({
                    url: "/Supplier/CofList?supplier=" + @ViewBag.SupplierId,
                    fit: true,
                    fitColumns: true,
                    singleSelect: true,
                    pagination:true,
                    pageSize:20,
                    columns: [[
                        { field: 'FProvinceName', title: '省份', width: 100, align: 'center' },
                        { field: 'FCityName', title: '城市', width: 100, align: 'center' },
                        { field: 'FCountryName', title: '区县', width: 100, align: 'center' },
                        {
                            field: 'Coefficient', title: '系数', width: 100, align: 'center'
                        }
                    ]],
                    toolbar: '#toolbar'
                });
            },
            ShowDetail: function (fitemid, fname) {

            },
            Save: function () {
                alert("保存成功！");
            }
        }

        parent.CofDetail = Grid;
    </script>
</body>
</html>
